﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HandWriter
{
	public enum ActionType
	{
		MoveLeft,
		MoveRight,
		MoveUp,
		MoveDown,
		ScaleWidthIncrease,
		ScaleHeightIncrease,
		ScaleWidthDecrease,
		ScaleHeightDecrease,
		ZoomIn,
		ZoomOut
	}

	[Serializable]
	public class Action
	{
		public ActionType ActionType;
		public Dictionary<string, object> Parameters = new Dictionary<string, object>();

		public Action(ActionType actionType, params KeyValuePair<string, object>[] p)
		{
			ActionType = actionType;
			foreach (var pair in p)
			{
				Parameters.Add(pair.Key, pair.Value);
			}
		}
	}
}
